<template>
  <div>
    <el-container v-if="show">
      <el-main class="ml30">
        <el-row class="mb10">
          <el-col><span>奖金名称：{{ dataForm.jjMc }}</span></el-col>
        </el-row>
        <el-row class="mb10">
          <el-col :span="8"><span>奖金编号：{{ dataForm.jjBh }}</span></el-col>
          <el-col :span="8">
            <span>奖金类型：{{
                dataForm.jjLx == 1 ? "年度" : dataForm.jjLx == 2 ? "月度" : dataForm.jjLx == 3 ? "日常" : "暂无"
              }}</span>
          </el-col>
          <el-col :span="8"><span>允许超额：{{ dataForm.sfCeff }}</span></el-col>
        </el-row>
        <el-row class="mb10">
          <el-col :span="8"><span>奖金来源：{{ dataForm.fpLy == 1 ? "单位自筹" : dataForm.fpLy == 2 ? "上级分配" : "暂无" }}</span>
          </el-col>
          <el-col :span="8"><span>专项奖金：{{ dataForm.sfZx }}</span></el-col>
          <el-col :span="8"><span>审核状态：{{ dataForm.fpZt }}</span></el-col>
        </el-row>
        <el-row class="mb10">
          <el-col :span="8"><span>开始时间：{{ $moment(dataForm.jjDateq).format("YYYY-MM-DD") }}</span></el-col>
          <el-col :span="8"><span>结束时间：{{ $moment(dataForm.jjDatez).format("YYYY-MM-DD") }}</span></el-col>
          <el-col :span="8"><span>过期时间：{{ $moment(dataForm.gqTime).format("YYYY-MM-DD") }}</span></el-col>
        </el-row>
        <el-row class="mb10">
          <el-col :span="8"><span>基础奖金：{{ $formatNum(dataForm.fpJj) }} 元</span></el-col>
          <el-col :span="8"><span>追加奖金：{{ $formatNum(dataForm.zjJj) }} 元</span></el-col>
          <el-col :span="8"><span>奖金总额：{{ $formatNum(dataForm.jjZe) }} 元</span></el-col>
        </el-row>
        <el-row class="mb10">
          <el-col :span="8"><span>部门分配：{{ $formatNum(dataForm.bmJj) }} 元</span></el-col>
          <el-col :span="8"><span>员工分配：{{ $formatNum(dataForm.ygJj) }} 元</span></el-col>
          <el-col :span="8"><span>定向分配：{{ $formatNum(dataForm.dxFp) }} 元</span></el-col>
        </el-row>
        <el-row class="mb10">
          <el-col :span="8"><span>分配总额：{{ $formatNum(dataForm.bmJj + dataForm.ygJj ) }} 元</span></el-col>
          <el-col :span="8"><span>奖金余额：{{ $formatNum(dataForm.jjYe) }} 元</span></el-col>
          <el-col :span="8"><span>奖金池余额：{{ $formatNum(jjcYe) }} 元</span></el-col>
        </el-row>
        <!-- <el-row class="mb10">

        </el-row> -->
      </el-main>
    </el-container>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {
      // 奖金组成
      show:false,
      dataForm: [],
      jjcYe: 0
    }
  },
  computed: {},
  mounted() {
  },
  methods: {
    init(obj,jjcYe) {
      this.dataForm = obj;
      this.jjcYe = jjcYe
      this.show = true;
    },
  }
}

</script>
<style scoped>

</style>
